In config.php line 28 I have written the following lines.
$query = "SELECT * FROM `users` WHERE username = '".$uname."' AND password = '".$pword."' ";
# set a query
$online = mysql_fetch_arr ay(mysql_query( $query));
Using MYSQL and PHP in a remote linux server I am getting the following error.
Warning: mysql_fetch_arr ay(): supplied argument is not a valid MySQL result resource in /home/india/public_html/xxxxx/auth/config.php on line 28
Can anybody advice , why I am getting the error.
$query = "SELECT * FROM `users` WHERE username = '".$uname."' AND password = '".$pword."' ";
# set a query
$online = mysql_fetch_arr ay(mysql_query( $query));
Using MYSQL and PHP in a remote linux server I am getting the following error.
Warning: mysql_fetch_arr ay(): supplied argument is not a valid MySQL result resource in /home/india/public_html/xxxxx/auth/config.php on line 28
Can anybody advice , why I am getting the error.
Comment